package org.ivwsqii.command.simple;

public class CommandImpl implements ICommand{
	//持有相应的接收者对象
	private Receiver receiver;

	public CommandImpl(Receiver receiver) {
		this.receiver = receiver;
	}

	@Override
	public void execute() {
		receiver.doSomething();
	}

}
